/**
 * Created by guo.xiaomin on 2017-12-03.
 */
var operationController = require('../controllers/operation-controller');
module.exports = function (app) {
    // 取得当前h5页面系统维护flag
    app.post('/rest/' + RESTFullServiceVersion + '/operation/getCommissionH5Flag', operationController.getCommissionH5Flag);
    // 设定当前h5页面系统维护flag
    app.post('/rest/' + RESTFullServiceVersion + '/operation/setCommissionH5Flag', operationController.setCommissionH5Flag);

    // 取得部分人访问标示符
    app.post('/rest/' + RESTFullServiceVersion + '/operation/getCommissionH5UserFlag', operationController.getCommissionH5UserFlag);
    // 设定部分人访问标示符
    app.post('/rest/' + RESTFullServiceVersion + '/operation/setCommissionH5UserFlag', operationController.setCommissionH5UserFlag);

    // 取得当前人是否在白名单中
    app.post('/rest/' + RESTFullServiceVersion + '/operation/isAllowCommissionH5User', operationController.isAllowCommissionH5User);
    // 追加当前人到白名单中
    app.post('/rest/' + RESTFullServiceVersion + '/operation/addAllowCommissionH5User', operationController.addAllowCommissionH5User);
    // 从白名单中删除当前人
    app.post('/rest/' + RESTFullServiceVersion + '/operation/removeAllowCommissionH5User', operationController.removeAllowCommissionH5User);
    // 取得白名单中所有人
    app.post('/rest/' + RESTFullServiceVersion + '/operation/getAllAllowCommissionH5User', operationController.getAllAllowCommissionH5User);
    // 从白名单中删除所有人
    app.post('/rest/' + RESTFullServiceVersion + '/operation/clearAllowCommissionH5User', operationController.clearAllowCommissionH5User);

    // 取得多个人是否在白名单中
    app.post('/rest/' + RESTFullServiceVersion + '/operation/isAllowCommissionH5UserList', operationController.isAllowCommissionH5UserList);
    // 追加多个人到白名单中
    app.post('/rest/' + RESTFullServiceVersion + '/operation/addAllowCommissionH5UserList', operationController.addAllowCommissionH5UserList);
    // 从白名单中删除多个人
    app.post('/rest/' + RESTFullServiceVersion + '/operation/removeAllowCommissionH5UserList', operationController.removeAllowCommissionH5UserList);

    // 取得手机号对应多种(注册，忘记密码，修改密码)验证码
    app.post('/rest/' + RESTFullServiceVersion + '/operation/getSmsVerificationCode', operationController.getSmsVerificationCode);

    // 根据redis的key取得redis值
    app.post('/rest/' + RESTFullServiceVersion + '/operation/getRedisValueByKey', operationController.getRedisValueByKey);


};